package com.unireport.dbbean;

// Generated 2012-5-2 22:17:44 by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * WebjobRpDef generated by hbm2java
 */
@Entity
@Table(name = "WEBJOB_RP_DEF", schema = "DATAMANAGER")
@SequenceGenerator(name="seq_webjob_rp_id", sequenceName="seq_webjob_rp_id",allocationSize=1)
public class WebjobRpDef implements java.io.Serializable {

	private int rpId;
	private String rpName;
	private String reuqestDept;
	private String requestName;
	private String operId;
	private String operName;
	private String filePath;
	private String status;
	private Date lastTime;
	private Integer execSecond;
	private Set<WebjobRpRelation> webjobRpRelations = new HashSet(0);
	private Set<WebjobRpSql> webjobRpSqls = new HashSet(0);
	private Set<WebjobRpPriv> webjobRpPrivs = new HashSet(0);
	private Set<WebjobRpParamDef> webjobRpParamDefs = new HashSet(0);

	public WebjobRpDef() {
	}

	public WebjobRpDef(int rp) {
		this.rpId = rp;
	}

	public WebjobRpDef(int rp, String rpName, String reuqestDept,
			String requestName, String operId, String operName,
			String filePath, String status, Date lastTime, Integer execSecond,
			Set webjobRpRelations, Set webjobRpSqls, Set webjobRpPrivs,
			Set webjobRpParamDefs) {
		this.rpId = rp;
		this.rpName = rpName;
		this.reuqestDept = reuqestDept;
		this.requestName = requestName;
		this.operId = operId;
		this.operName = operName;
		this.filePath = filePath;
		this.status = status;
		this.lastTime = lastTime;
		this.execSecond = execSecond;
		this.webjobRpRelations = webjobRpRelations;
		this.webjobRpSqls = webjobRpSqls;
		this.webjobRpPrivs = webjobRpPrivs;
		this.webjobRpParamDefs = webjobRpParamDefs;
	}

	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="seq_webjob_rp_id")
	@Column(name = "RP", unique = true, nullable = false, precision = 8, scale = 0)
	public int getRpId() {
		return this.rpId;
	}

	public void setRpId(int rp) {
		this.rpId = rp;
	}

	@Column(name = "RP_NAME", length = 100)
	public String getRpName() {
		return this.rpName;
	}

	public void setRpName(String rpName) {
		this.rpName = rpName;
	}

	@Column(name = "REUQEST_DEPT", length = 100)
	public String getReuqestDept() {
		return this.reuqestDept;
	}

	public void setReuqestDept(String reuqestDept) {
		this.reuqestDept = reuqestDept;
	}

	@Column(name = "REQUEST_NAME", length = 100)
	public String getRequestName() {
		return this.requestName;
	}

	public void setRequestName(String requestName) {
		this.requestName = requestName;
	}

	@Column(name = "OPER_ID", length = 40)
	public String getOperId() {
		return this.operId;
	}

	public void setOperId(String operId) {
		this.operId = operId;
	}

	@Column(name = "OPER_NAME", length = 100)
	public String getOperName() {
		return this.operName;
	}

	public void setOperName(String operName) {
		this.operName = operName;
	}

	@Column(name = "FILE_PATH", length = 256)
	public String getFilePath() {
		return this.filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	@Column(name = "STATUS", length = 20)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "LAST_TIME", length = 7)
	public Date getLastTime() {
		return this.lastTime;
	}

	public void setLastTime(Date lastTime) {
		this.lastTime = lastTime;
	}

	@Column(name = "EXEC_SECOND", precision = 8, scale = 0)
	public Integer getExecSecond() {
		return this.execSecond;
	}

	public void setExecSecond(Integer execSecond) {
		this.execSecond = execSecond;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "webjobRpDef",targetEntity=WebjobRpRelation.class)
	public Set getWebjobRpRelations() {
		return this.webjobRpRelations;
	}

	public void setWebjobRpRelations(Set webjobRpRelations) {
		this.webjobRpRelations = webjobRpRelations;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "webjobRpDef",targetEntity=WebjobRpSql.class)
	public Set getWebjobRpSqls() {
		return this.webjobRpSqls;
	}

	public void setWebjobRpSqls(Set webjobRpSqls) {
		this.webjobRpSqls = webjobRpSqls;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "webjobRpDef",targetEntity=WebjobRpPriv.class)
	public Set getWebjobRpPrivs() {
		return this.webjobRpPrivs;
	}

	public void setWebjobRpPrivs(Set webjobRpPrivs) {
		this.webjobRpPrivs = webjobRpPrivs;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "webjobRpDef",targetEntity=WebjobRpParamDef.class)
	public Set getWebjobRpParamDefs() {
		return this.webjobRpParamDefs;
	}

	public void setWebjobRpParamDefs(Set webjobRpParamDefs) {
		this.webjobRpParamDefs = webjobRpParamDefs;
	}

}
